import axios from "@/utils/request";
const getCode = (sid) => {
  return axios.get("/public/getCaptcha", {
    params: {
      sid: sid,
    },
  });
};
const forget = (option) => {
  return axios.post("/login/forget", {
    ...option,
  });
};
const login = (logininfo) => {
  return axios.post("/login/login", {
    ...logininfo,
  });
};
const reg = (reginfo) => {
  return axios.post("/login/reg", {
    ...reginfo,
  });
};
const resetInfo = (reginfo) => {
  return axios.post("/login/reset", {
    ...reginfo,
  });
};
export { getCode, forget, login, reg, resetInfo };
